package edu.zhku.ttms.utils;

/**
 * @author Feng
 * @since 2021/4/19 11:36
 */
public class StringUtil {

    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }

    public static String ifEmpty2Null(String str) {
        if (isEmpty(str)) {
            return null;
        }
        return str;
    }
}
